<?php include './application/views/top.php'; ?>
<script src="/resource/js/circle-progress.js"></script>
<div class="clear"></div>
<div class="top_bottom all"></div>
<div class="clear h50"></div>
<div class="layout about">
	<div class="left account-menu">
		<h1>找金银贷</h1>
        <?php foreach($second_site_list as $second_site){?>
        <dl>
        	<dt<?php if($second_site['id'] == $site['parent_id']){?> class="cut"<?php }?>>
            	<a href="javascript:void(0);"><?php echo $second_site['title']?></a>
            </dt>
            <?php if(count($third_site_lists)){?>
            <dd>
            <?php foreach($third_site_lists as $second_site_url => $third_site_list){?>
            	<?php if($second_site_url == $second_site['url']){?>
                	<?php foreach($third_site_list as $third_site){?>
                    <h3<?php if($third_site['url'] == $third_url){?> class="current"<?php }?>>
                    <a href="/site/help/<?php echo $second_site['url']?>/<?php echo $third_site['url']?>.html"><?php echo $third_site['title']?></a>
                    </h3>
                    <?php }?>
                <?php }?>
            <?php }?>
            </dd>
            <?php }?>
		</dl>
        <?php }?>
	</div>
	<div class="right">
    	<h3><?php echo $site['title']?></h3>
        <div class="clear h20"></div>
    	<div class="content">
		<?php echo $site['content']?>
        </div>
        <div class="clear h20"></div>
    </div>
</div>
<div class="clear h50"></div>
<?php include "./application/views/footer.php";?>
<script type="text/javascript">
    $(document).ready(function(){
        $(".account-menu dl dd").hide();
        var h2 = $(".account-menu dl dt");
        var currentA = new Array();
        currentA  = $('.account-menu dl dd h3');
        for(var i = 0; i<currentA.size();i++){
            if($($(currentA[i])).hasClass('current') == true) {
                $(currentA[i]).parent().show();
            }
        }
        h2.click(function(){
            $(".account-menu dl dd").slideUp();
            var current = $(this).next('dd');
            current.slideDown();
            h2.removeClass("cut");
            $(this).addClass("cut");
        });

    });
</script>